GXGetJobFormat
You can use theGXGetJobFormat
function to obtain the format objects associated with a job object.
gxFormat GXGetJobFormat (gxJob aJob, long whichFormat);
aJob
- A reference to the job object whose format object you wish to obtain.
whichFormat
- The index of the format object to retrieve.
- function result
- A reference to a format object.
DESCRIPTION
TheGXGetJobFormat
function allows you to obtain a format object from the job object specified in theaJob
parameter. ThewhichFormat
parameter specifies the format object to return. You can set this parameter to 1 to obtain the default format. The default format is defined by the formatting printer.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found, or there was not enough memory to load it. SEE ALSO
Listing 2-5 on page 2-21 and Listing 2-6 on page 2-23 show how to use theGXGetJobFormat
function to obtain the default format when a user wants to print a document.Manipulating format objects is described in the chapter "Page Formatting and Dialog Box Customization" in this book.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help